<#assign className = table.className>
<#assign classNameLower = className?uncap_first>
<#assign classNameCap = className?lower_case?cap_first>
package ${basepackage}.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import ${basepackage}.framework.model.PageData;
import ${basepackage}.framework.model.PageParam;
import ${basepackage}.framework.generic.GenericServiceImpl;

import ${basepackage}.entity.${className};
import ${basepackage}.dao.${className}Mapper;
import ${basepackage}.service.${className}Service;


/**
 * ${className}服务实现
 */
@Service
@Transactional
public class ${className}ServiceImpl extends GenericServiceImpl<${className}> implements ${className}Service{
	
	@Autowired
	private ${className}Mapper mapper;
	
	@Override
	public ${className} getDetail(Integer id) {
		${className} record = mapper.selectById(id);
		return record;
	}
	
	@Override
	public PageData<${className}> page(PageParam param) {
		PageData<${className}> data = super.getPageData(param);
		return data;
	}

}
